package com.zdb.demo.design.pattern.creational.builder;

public class Coach {

    private CourseBuilder courseBuilder;

    public Coach() {
    }

    public void setCourseBuilder(CourseBuilder courseBuilder) {
        this.courseBuilder = courseBuilder;
    }

    public Course makeCourse(String couseName, String courseArticle, String coursePPT, String courseVideo, String courseQA) {
        courseBuilder.buildCourseName(couseName);
        courseBuilder.buildCourseArticle(courseArticle);
        courseBuilder.buildCoursePPT(coursePPT);
        courseBuilder.buildCourseVideo(courseVideo);
        courseBuilder.buildCourseQA(courseQA);
        return courseBuilder.makeCourse();
    }
}
